IRedisTypedClient<T>
Assembly: ServiceStack.Interfaces.dll
Declaration
public interface IRedisTypedClient<T> : IEntityStore<T>
Properties
Lists
Declaration
IHasNamed<IRedisList<T>> Lists { get; set; }
Sets
Declaration
IHasNamed<IRedisSet<T>> Sets { get; set; }
SortedSets
Declaration
IHasNamed<IRedisSortedSet<T>> SortedSets { get; set; }
RedisClient
Declaration
IRedisClient RedisClient { get; }
TypeIdsSet
Declaration
IRedisSet TypeIdsSet { get; }
Item[String]
Declaration
T this[string key] { get; set; }
SequenceKey
Declaration
string SequenceKey { get; set; }
Methods
GetHash<TKey>(String)
Declaration
IRedisHash<TKey, T> GetHash<TKey>(string hashId)
Returns
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>>
Parameters
Type | Name |
---|
System.String | hashId |
Type Parameters
CreateTransaction()
Declaration
IRedisTypedTransaction<T> CreateTransaction()
Returns
ServiceStack.Redis.Generic.IRedisTypedTransaction<T>
CreatePipeline()
Declaration
IRedisTypedPipeline<T> CreatePipeline()
Returns
ServiceStack.Redis.Generic.IRedisTypedPipeline<T>
AcquireLock()
Declaration
IDisposable AcquireLock()
Returns
System.IDisposable
AcquireLock(TimeSpan)
Declaration
IDisposable AcquireLock(TimeSpan timeOut)
Returns
System.IDisposable
Parameters
Type | Name |
---|
System.TimeSpan | timeOut |
GetAllKeys()
Declaration
List<string> GetAllKeys()
Returns
System.Collections.Generic.List<System.String>
UrnKey(T)
Returns
System.String
Parameters
SetSequence(Int32)
Declaration
void SetSequence(int value)
Parameters
Type | Name |
---|
System.Int32 | value |
GetNextSequence()
Returns
System.Int64
GetNextSequence(Int32)
Declaration
long GetNextSequence(int incrBy)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Int32 | incrBy |
GetEntryType(String)
Declaration
RedisKeyType GetEntryType(string key)
Returns
ServiceStack.Redis.RedisKeyType
Parameters
GetRandomKey()
Returns
System.String
SetValue(String, T)
Declaration
void SetValue(string key, T entity)
Parameters
Type | Name |
---|
System.String | key |
<T> | entity |
SetValue(String, T, TimeSpan)
Declaration
void SetValue(string key, T entity, TimeSpan expireIn)
Parameters
Type | Name |
---|
System.String | key |
<T> | entity |
System.TimeSpan | expireIn |
SetValueIfNotExists(String, T)
Declaration
bool SetValueIfNotExists(string key, T entity)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | entity |
SetValueIfExists(String, T)
Declaration
bool SetValueIfExists(string key, T entity)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
<T> | entity |
Store(T, TimeSpan)
Declaration
T Store(T entity, TimeSpan expireIn)
Returns
<T>
Parameters
Type | Name |
---|
<T> | entity |
System.TimeSpan | expireIn |
GetValue(String)
Returns
<T>
Parameters
GetAndSetValue(String, T)
Declaration
T GetAndSetValue(string key, T value)
Returns
<T>
Parameters
Type | Name |
---|
System.String | key |
<T> | value |
ContainsKey(String)
Declaration
bool ContainsKey(string key)
Returns
System.Boolean
Parameters
RemoveEntry(String)
Declaration
bool RemoveEntry(string key)
Returns
System.Boolean
Parameters
RemoveEntry(String[])
Declaration
bool RemoveEntry(params string[] args)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String[] | args |
RemoveEntry(IHasStringId[])
Declaration
bool RemoveEntry(params IHasStringId[] entities)
Returns
System.Boolean
Parameters
Type | Name |
---|
ServiceStack.Model.IHasStringId[] | entities |
IncrementValue(String)
Declaration
long IncrementValue(string key)
Returns
System.Int64
Parameters
IncrementValueBy(String, Int32)
Declaration
long IncrementValueBy(string key, int count)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | count |
DecrementValue(String)
Declaration
long DecrementValue(string key)
Returns
System.Int64
Parameters
DecrementValueBy(String, Int32)
Declaration
long DecrementValueBy(string key, int count)
Returns
System.Int64
Parameters
Type | Name |
---|
System.String | key |
System.Int32 | count |
ExpireIn(Object, TimeSpan)
Declaration
bool ExpireIn(object id, TimeSpan expiresAt)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | id |
System.TimeSpan | expiresAt |
ExpireAt(Object, DateTime)
Declaration
bool ExpireAt(object id, DateTime dateTime)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Object | id |
System.DateTime | dateTime |
ExpireEntryIn(String, TimeSpan)
Declaration
bool ExpireEntryIn(string key, TimeSpan expiresAt)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.TimeSpan | expiresAt |
ExpireEntryAt(String, DateTime)
Declaration
bool ExpireEntryAt(string key, DateTime dateTime)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.String | key |
System.DateTime | dateTime |
GetTimeToLive(String)
Declaration
TimeSpan GetTimeToLive(string key)
Returns
System.TimeSpan
Parameters
Save()
SaveAsync()
FlushDb()
FlushAll()
SearchKeys(String)
Declaration
T[] SearchKeys(string pattern)
Returns
<T>[]
Parameters
Type | Name |
---|
System.String | pattern |
GetValues(List<String>)
Declaration
List<T> GetValues(List<string> keys)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|
System.Collections.Generic.List<System.String> | keys |
GetSortedEntryValues(IRedisSet<T>, Int32, Int32)
Declaration
List<T> GetSortedEntryValues(IRedisSet<T> fromSet, int startingFrom, int endingAt)
Returns
System.Collections.Generic.List<<T>>
Parameters
StoreAsHash(T)
Declaration
void StoreAsHash(T entity)
Parameters
GetFromHash(Object)
Returns
<T>
Parameters
GetAllItemsFromSet(IRedisSet<T>)
Declaration
HashSet<T> GetAllItemsFromSet(IRedisSet<T> fromSet)
Returns
System.Collections.Generic.HashSet<<T>>
Parameters
AddItemToSet(IRedisSet<T>, T)
Declaration
void AddItemToSet(IRedisSet<T> toSet, T item)
Parameters
RemoveItemFromSet(IRedisSet<T>, T)
Declaration
void RemoveItemFromSet(IRedisSet<T> fromSet, T item)
Parameters
PopItemFromSet(IRedisSet<T>)
Declaration
T PopItemFromSet(IRedisSet<T> fromSet)
Returns
<T>
Parameters
MoveBetweenSets(IRedisSet<T>, IRedisSet<T>, T)
Declaration
void MoveBetweenSets(IRedisSet<T> fromSet, IRedisSet<T> toSet, T item)
Parameters
GetSetCount(IRedisSet<T>)
Declaration
long GetSetCount(IRedisSet<T> set)
Returns
System.Int64
Parameters
SetContainsItem(IRedisSet<T>, T)
Declaration
bool SetContainsItem(IRedisSet<T> set, T item)
Returns
System.Boolean
Parameters
GetIntersectFromSets(IRedisSet<T>[])
Declaration
HashSet<T> GetIntersectFromSets(params IRedisSet<T>[] sets)
Returns
System.Collections.Generic.HashSet<<T>>
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisSet<<T>>[] | sets |
StoreIntersectFromSets(IRedisSet<T>, IRedisSet<T>[])
Declaration
void StoreIntersectFromSets(IRedisSet<T> intoSet, params IRedisSet<T>[] sets)
Parameters
GetUnionFromSets(IRedisSet<T>[])
Declaration
HashSet<T> GetUnionFromSets(params IRedisSet<T>[] sets)
Returns
System.Collections.Generic.HashSet<<T>>
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisSet<<T>>[] | sets |
StoreUnionFromSets(IRedisSet<T>, IRedisSet<T>[])
Declaration
void StoreUnionFromSets(IRedisSet<T> intoSet, params IRedisSet<T>[] sets)
Parameters
GetDifferencesFromSet(IRedisSet<T>, IRedisSet<T>[])
Declaration
HashSet<T> GetDifferencesFromSet(IRedisSet<T> fromSet, params IRedisSet<T>[] withSets)
Returns
System.Collections.Generic.HashSet<<T>>
Parameters
StoreDifferencesFromSet(IRedisSet<T>, IRedisSet<T>, IRedisSet<T>[])
Declaration
void StoreDifferencesFromSet(IRedisSet<T> intoSet, IRedisSet<T> fromSet, params IRedisSet<T>[] withSets)
Parameters
GetRandomItemFromSet(IRedisSet<T>)
Declaration
T GetRandomItemFromSet(IRedisSet<T> fromSet)
Returns
<T>
Parameters
GetAllItemsFromList(IRedisList<T>)
Declaration
List<T> GetAllItemsFromList(IRedisList<T> fromList)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromList(IRedisList<T>, Int32, Int32)
Declaration
List<T> GetRangeFromList(IRedisList<T> fromList, int startingFrom, int endingAt)
Returns
System.Collections.Generic.List<<T>>
Parameters
SortList(IRedisList<T>, Int32, Int32)
Declaration
List<T> SortList(IRedisList<T> fromList, int startingFrom, int endingAt)
Returns
System.Collections.Generic.List<<T>>
Parameters
AddItemToList(IRedisList<T>, T)
Declaration
void AddItemToList(IRedisList<T> fromList, T value)
Parameters
PrependItemToList(IRedisList<T>, T)
Declaration
void PrependItemToList(IRedisList<T> fromList, T value)
Parameters
RemoveStartFromList(IRedisList<T>)
Declaration
T RemoveStartFromList(IRedisList<T> fromList)
Returns
<T>
Parameters
BlockingRemoveStartFromList(IRedisList<T>, Nullable<TimeSpan>)
Declaration
T BlockingRemoveStartFromList(IRedisList<T> fromList, TimeSpan? timeOut)
Returns
<T>
Parameters
RemoveEndFromList(IRedisList<T>)
Declaration
T RemoveEndFromList(IRedisList<T> fromList)
Returns
<T>
Parameters
RemoveAllFromList(IRedisList<T>)
Declaration
void RemoveAllFromList(IRedisList<T> fromList)
Parameters
TrimList(IRedisList<T>, Int32, Int32)
Declaration
void TrimList(IRedisList<T> fromList, int keepStartingFrom, int keepEndingAt)
Parameters
RemoveItemFromList(IRedisList<T>, T)
Declaration
long RemoveItemFromList(IRedisList<T> fromList, T value)
Returns
System.Int64
Parameters
RemoveItemFromList(IRedisList<T>, T, Int32)
Declaration
long RemoveItemFromList(IRedisList<T> fromList, T value, int noOfMatches)
Returns
System.Int64
Parameters
GetListCount(IRedisList<T>)
Declaration
long GetListCount(IRedisList<T> fromList)
Returns
System.Int64
Parameters
GetItemFromList(IRedisList<T>, Int32)
Declaration
T GetItemFromList(IRedisList<T> fromList, int listIndex)
Returns
<T>
Parameters
SetItemInList(IRedisList<T>, Int32, T)
Declaration
void SetItemInList(IRedisList<T> toList, int listIndex, T value)
Parameters
InsertBeforeItemInList(IRedisList<T>, T, T)
Declaration
void InsertBeforeItemInList(IRedisList<T> toList, T pivot, T value)
Parameters
InsertAfterItemInList(IRedisList<T>, T, T)
Declaration
void InsertAfterItemInList(IRedisList<T> toList, T pivot, T value)
Parameters
EnqueueItemOnList(IRedisList<T>, T)
Declaration
void EnqueueItemOnList(IRedisList<T> fromList, T item)
Parameters
DequeueItemFromList(IRedisList<T>)
Declaration
T DequeueItemFromList(IRedisList<T> fromList)
Returns
<T>
Parameters
BlockingDequeueItemFromList(IRedisList<T>, Nullable<TimeSpan>)
Declaration
T BlockingDequeueItemFromList(IRedisList<T> fromList, TimeSpan? timeOut)
Returns
<T>
Parameters
PushItemToList(IRedisList<T>, T)
Declaration
void PushItemToList(IRedisList<T> fromList, T item)
Parameters
PopItemFromList(IRedisList<T>)
Declaration
T PopItemFromList(IRedisList<T> fromList)
Returns
<T>
Parameters
BlockingPopItemFromList(IRedisList<T>, Nullable<TimeSpan>)
Declaration
T BlockingPopItemFromList(IRedisList<T> fromList, TimeSpan? timeOut)
Returns
<T>
Parameters
PopAndPushItemBetweenLists(IRedisList<T>, IRedisList<T>)
Declaration
T PopAndPushItemBetweenLists(IRedisList<T> fromList, IRedisList<T> toList)
Returns
<T>
Parameters
BlockingPopAndPushItemBetweenLists(IRedisList<T>, IRedisList<T>, Nullable<TimeSpan>)
Declaration
T BlockingPopAndPushItemBetweenLists(IRedisList<T> fromList, IRedisList<T> toList, TimeSpan? timeOut)
Returns
<T>
Parameters
AddItemToSortedSet(IRedisSortedSet<T>, T)
Declaration
void AddItemToSortedSet(IRedisSortedSet<T> toSet, T value)
Parameters
AddItemToSortedSet(IRedisSortedSet<T>, T, Double)
Declaration
void AddItemToSortedSet(IRedisSortedSet<T> toSet, T value, double score)
Parameters
RemoveItemFromSortedSet(IRedisSortedSet<T>, T)
Declaration
bool RemoveItemFromSortedSet(IRedisSortedSet<T> fromSet, T value)
Returns
System.Boolean
Parameters
PopItemWithLowestScoreFromSortedSet(IRedisSortedSet<T>)
Declaration
T PopItemWithLowestScoreFromSortedSet(IRedisSortedSet<T> fromSet)
Returns
<T>
Parameters
PopItemWithHighestScoreFromSortedSet(IRedisSortedSet<T>)
Declaration
T PopItemWithHighestScoreFromSortedSet(IRedisSortedSet<T> fromSet)
Returns
<T>
Parameters
SortedSetContainsItem(IRedisSortedSet<T>, T)
Declaration
bool SortedSetContainsItem(IRedisSortedSet<T> set, T value)
Returns
System.Boolean
Parameters
IncrementItemInSortedSet(IRedisSortedSet<T>, T, Double)
Declaration
double IncrementItemInSortedSet(IRedisSortedSet<T> set, T value, double incrementBy)
Returns
System.Double
Parameters
GetItemIndexInSortedSet(IRedisSortedSet<T>, T)
Declaration
long GetItemIndexInSortedSet(IRedisSortedSet<T> set, T value)
Returns
System.Int64
Parameters
GetItemIndexInSortedSetDesc(IRedisSortedSet<T>, T)
Declaration
long GetItemIndexInSortedSetDesc(IRedisSortedSet<T> set, T value)
Returns
System.Int64
Parameters
GetAllItemsFromSortedSet(IRedisSortedSet<T>)
Declaration
List<T> GetAllItemsFromSortedSet(IRedisSortedSet<T> set)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetAllItemsFromSortedSetDesc(IRedisSortedSet<T>)
Declaration
List<T> GetAllItemsFromSortedSetDesc(IRedisSortedSet<T> set)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSet(IRedisSortedSet<T>, Int32, Int32)
Declaration
List<T> GetRangeFromSortedSet(IRedisSortedSet<T> set, int fromRank, int toRank)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetDesc(IRedisSortedSet<T>, Int32, Int32)
Declaration
List<T> GetRangeFromSortedSetDesc(IRedisSortedSet<T> set, int fromRank, int toRank)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetAllWithScoresFromSortedSet(IRedisSortedSet<T>)
Declaration
IDictionary<T, double> GetAllWithScoresFromSortedSet(IRedisSortedSet<T> set)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSet(IRedisSortedSet<T>, Int32, Int32)
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSet(IRedisSortedSet<T> set, int fromRank, int toRank)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetDesc(IRedisSortedSet<T>, Int32, Int32)
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetDesc(IRedisSortedSet<T> set, int fromRank, int toRank)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T>, String, String)
Declaration
List<T> GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T>, String, String, Nullable<Int32>, Nullable<Int32>)
Declaration
List<T> GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore, int? skip, int? take)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T>, Double, Double)
Declaration
List<T> GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T>, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
List<T> GetRangeFromSortedSetByLowestScore(IRedisSortedSet<T> set, double fromScore, double toScore, int? skip, int? take)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T>, String, String)
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T>, String, String, Nullable<Int32>, Nullable<Int32>)
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore, int? skip, int? take)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T>, Double, Double)
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T>, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByLowestScore(IRedisSortedSet<T> set, double fromScore, double toScore, int? skip, int? take)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T>, String, String)
Declaration
List<T> GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T>, String, String, Nullable<Int32>, Nullable<Int32>)
Declaration
List<T> GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore, int? skip, int? take)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T>, Double, Double)
Declaration
List<T> GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T>, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
List<T> GetRangeFromSortedSetByHighestScore(IRedisSortedSet<T> set, double fromScore, double toScore, int? skip, int? take)
Returns
System.Collections.Generic.List<<T>>
Parameters
GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T>, String, String)
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T>, String, String, Nullable<Int32>, Nullable<Int32>)
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T> set, string fromStringScore, string toStringScore, int? skip, int? take)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T>, Double, Double)
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T>, Double, Double, Nullable<Int32>, Nullable<Int32>)
Declaration
IDictionary<T, double> GetRangeWithScoresFromSortedSetByHighestScore(IRedisSortedSet<T> set, double fromScore, double toScore, int? skip, int? take)
Returns
System.Collections.Generic.IDictionary<<T>,System.Double>
Parameters
RemoveRangeFromSortedSet(IRedisSortedSet<T>, Int32, Int32)
Declaration
long RemoveRangeFromSortedSet(IRedisSortedSet<T> set, int minRank, int maxRank)
Returns
System.Int64
Parameters
RemoveRangeFromSortedSetByScore(IRedisSortedSet<T>, Double, Double)
Declaration
long RemoveRangeFromSortedSetByScore(IRedisSortedSet<T> set, double fromScore, double toScore)
Returns
System.Int64
Parameters
GetSortedSetCount(IRedisSortedSet<T>)
Declaration
long GetSortedSetCount(IRedisSortedSet<T> set)
Returns
System.Int64
Parameters
GetItemScoreInSortedSet(IRedisSortedSet<T>, T)
Declaration
double GetItemScoreInSortedSet(IRedisSortedSet<T> set, T value)
Returns
System.Double
Parameters
StoreIntersectFromSortedSets(IRedisSortedSet<T>, IRedisSortedSet<T>[])
Declaration
long StoreIntersectFromSortedSets(IRedisSortedSet<T> intoSetId, params IRedisSortedSet<T>[] setIds)
Returns
System.Int64
Parameters
StoreIntersectFromSortedSets(IRedisSortedSet<T>, IRedisSortedSet<T>[], String[])
Declaration
long StoreIntersectFromSortedSets(IRedisSortedSet<T> intoSetId, IRedisSortedSet<T>[] setIds, string[] args)
Returns
System.Int64
Parameters
StoreUnionFromSortedSets(IRedisSortedSet<T>, IRedisSortedSet<T>[])
Declaration
long StoreUnionFromSortedSets(IRedisSortedSet<T> intoSetId, params IRedisSortedSet<T>[] setIds)
Returns
System.Int64
Parameters
StoreUnionFromSortedSets(IRedisSortedSet<T>, IRedisSortedSet<T>[], String[])
Declaration
long StoreUnionFromSortedSets(IRedisSortedSet<T> intoSetId, IRedisSortedSet<T>[] setIds, string[] args)
Returns
System.Int64
Parameters
HashContainsEntry<TKey>(IRedisHash<TKey, T>, TKey)
Declaration
bool HashContainsEntry<TKey>(IRedisHash<TKey, T> hash, TKey key)
Returns
System.Boolean
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
<TKey> | key |
Type Parameters
SetEntryInHash<TKey>(IRedisHash<TKey, T>, TKey, T)
Declaration
bool SetEntryInHash<TKey>(IRedisHash<TKey, T> hash, TKey key, T value)
Returns
System.Boolean
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
<TKey> | key |
<T> | value |
Type Parameters
SetEntryInHashIfNotExists<TKey>(IRedisHash<TKey, T>, TKey, T)
Declaration
bool SetEntryInHashIfNotExists<TKey>(IRedisHash<TKey, T> hash, TKey key, T value)
Returns
System.Boolean
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
<TKey> | key |
<T> | value |
Type Parameters
SetRangeInHash<TKey>(IRedisHash<TKey, T>, IEnumerable<KeyValuePair<TKey, T>>)
Declaration
void SetRangeInHash<TKey>(IRedisHash<TKey, T> hash, IEnumerable<KeyValuePair<TKey, T>> keyValuePairs)
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<<TKey>,<T>>> | keyValuePairs |
Type Parameters
GetValueFromHash<TKey>(IRedisHash<TKey, T>, TKey)
Declaration
T GetValueFromHash<TKey>(IRedisHash<TKey, T> hash, TKey key)
Returns
<T>
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
<TKey> | key |
Type Parameters
RemoveEntryFromHash<TKey>(IRedisHash<TKey, T>, TKey)
Declaration
bool RemoveEntryFromHash<TKey>(IRedisHash<TKey, T> hash, TKey key)
Returns
System.Boolean
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
<TKey> | key |
Type Parameters
GetHashCount<TKey>(IRedisHash<TKey, T>)
Declaration
long GetHashCount<TKey>(IRedisHash<TKey, T> hash)
Returns
System.Int64
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
Type Parameters
GetHashKeys<TKey>(IRedisHash<TKey, T>)
Declaration
List<TKey> GetHashKeys<TKey>(IRedisHash<TKey, T> hash)
Returns
System.Collections.Generic.List<<TKey>>
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
Type Parameters
GetHashValues<TKey>(IRedisHash<TKey, T>)
Declaration
List<T> GetHashValues<TKey>(IRedisHash<TKey, T> hash)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
Type Parameters
GetAllEntriesFromHash<TKey>(IRedisHash<TKey, T>)
Declaration
Dictionary<TKey, T> GetAllEntriesFromHash<TKey>(IRedisHash<TKey, T> hash)
Returns
System.Collections.Generic.Dictionary<<TKey>,<T>>
Parameters
Type | Name |
---|
ServiceStack.Redis.Generic.IRedisHash<<TKey>,<T>> | hash |
Type Parameters
Declaration
void StoreRelatedEntities<TChild>(object parentId, List<TChild> children)
Parameters
Type | Name |
---|
System.Object | parentId |
System.Collections.Generic.List<<TChild>> | children |
Type Parameters
Declaration
void StoreRelatedEntities<TChild>(object parentId, params TChild[] children)
Parameters
Type | Name |
---|
System.Object | parentId |
<TChild>[] | children |
Type Parameters
Declaration
void DeleteRelatedEntities<TChild>(object parentId)
Parameters
Type | Name |
---|
System.Object | parentId |
Type Parameters
Declaration
void DeleteRelatedEntity<TChild>(object parentId, object childId)
Parameters
Type | Name |
---|
System.Object | parentId |
System.Object | childId |
Type Parameters
Declaration
List<TChild> GetRelatedEntities<TChild>(object parentId)
Returns
System.Collections.Generic.List<<TChild>>
Parameters
Type | Name |
---|
System.Object | parentId |
Type Parameters
Declaration
long GetRelatedEntitiesCount<TChild>(object parentId)
Returns
System.Int64
Parameters
Type | Name |
---|
System.Object | parentId |
Type Parameters
AddToRecentsList(T)
Declaration
void AddToRecentsList(T value)
Parameters
GetLatestFromRecentsList(Int32, Int32)
Declaration
List<T> GetLatestFromRecentsList(int skip, int take)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|
System.Int32 | skip |
System.Int32 | take |
GetEarliestFromRecentsList(Int32, Int32)
Declaration
List<T> GetEarliestFromRecentsList(int skip, int take)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|
System.Int32 | skip |
System.Int32 | take |